var express = require('express');
var router = express.Router();

const Product = require('../controllers/product.controllers');

/* GET users listing. */
router.post('/', Product.create) //新增用户一般用post
router.put('/:id', Product.update);
router.delete('/:id', Product.remove);
router.post('/list', Product.list);
router.get('/:id', Product.get);



module.exports = router;